<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>JQ放大镜效果</title>

<style type="text/css">
	#small{
		width: 400px;
		height: 400px;
		border: 1px solid black;
		position: absolute;
		left: 100px;
		top: 100px
	}

	#small img{
		width: 400px;
		height: 400px;
	}

	#big{
		width: 400px;
		height: 400px;
		border:1px solid red;
		position: absolute;
		left: 600px;
		top:100px;
	}

	#big img{
		width: 800px;
		height: 800px;
		position: absolute;
	}

	#zhezhao{
		width: 100px;
		height: 100px;
		background:yellow;
		opacity: 0.6;
		position: absolute;
		left: 0;
		top:0;
		display: none;
		z-index: 1000;
	}


</style>
<script src="js/jquery-3.4.1.min.js"></script>
<script src="js/index.js"></script>
</head>
<body>
	
	<div id="small">
		<img src="1.jpg" alt="">
		<div id="zhezhao"></div>
	</div>

	<div id="big">
		<img src="1.jpg" alt="">
	</div>
	


</body>
</html>